package com.yuefresh.sys;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.yuefresh.core.Model;

@Entity
@Table(name = "sys_status")
public class Status extends Model {
	private static final long serialVersionUID = 1455658L;
	@Id
	@Column(name = "STATUS_ID")
	private String status_ID;
	@Column(name = "NAME")
	private String name;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "DOMAIN_FK")
	private Domain domain;

	public Status() {}

	public Status(String status_ID) {
		this.status_ID = status_ID;
	}

	public String getStatus_ID() {
		return status_ID;
	}
	public void setStatus_ID(String statusID) {
		status_ID = statusID;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public Domain getDomain() {
		return domain;
	}
	public void setDomain(Domain domain) {
		this.domain = domain;
	}
}
